<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo;
    $subsubvo = '';
}
?>
<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?> sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];

        }
         ?>
         <div class="panel panel-primary">
    <?php include(TMPL_PATH.'Home/TemplateDefault/Public-Moduletitle'.C('TMPL_TEMPLATE_SUFFIX')); ?>
<div class="panel-body">


<form class="guestbookdataform form-horizontal" action="<?php echo U('Ajax/insertEvaluate');?>" method="post">
<input type="hidden" name="product_id" value="<?php echo $id;?>">


<input id="input-21b<?php echo $v['id'];?>" value="4" type="number" name="level" class="rating" min=0 max=5 step=0.2 data-size="sm">


<div class="form-group">
  <label class="col-sm-2 control-label">说点什么吧</label>
  <div class="col-sm-10">
    <textarea class="form-control" value="" name="content" type="text" id="content" size="50"></textarea>
  </div>
</div>


<button class="btn btn-success">提交</button>


</form>



<div style="padding:10px;" id="evaluateListBox<?php echo $vo['id'];?>">









</div>


<?php if(strtolower(GROUP_NAME) != 'admin'){?>
<script>

    $(document).ready(function () {

        $("#rating-kv").rating({defaultCaption: '{rating} 星'});


		$.post('<?php echo U('Home/Ajax/getEvaluateList');?>',{id:<?php echo $id;?>}, function(data){
			$('#evaluateListBox<?php echo $vo['id'];?>').html(data);
		},'html');


    });

</script>
<?php }?>

 </div>
</div></div>